package com.vast.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

@ApiModel(value="com.vast.admin.entity.RepaymentPlan")
@Data
@TableName(value = "repayment_plan")
public class RepaymentPlan {
     @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="null")
    private Long id;

    /**
     * 还款日期
     */
    @TableField(value = "repayment_date")
    @ApiModelProperty(value="还款日期")
    private Date repaymentDate;

    /**
     * 还款期数
     */
    @TableField(value = "repayment_index")
    @ApiModelProperty(value="还款期数")
    private Integer repaymentIndex;

    /**
     * 还款本金
     */
    @TableField(value = "principal")
    @ApiModelProperty(value="还款本金")
    private Double principal;

    /**
     * 还款利息
     */
    @TableField(value = "interest")
    @ApiModelProperty(value="还款利息")
    private Double interest;

    /**
     * 本息合计
     */
    @TableField(value = "total")
    @ApiModelProperty(value="本息合计")
    private Double total;

    /**
     * 合同ID
     */
    @TableField(value = "contract_detail_id")
    @ApiModelProperty(value="合同ID")
    private Long contractDetailId;

    /**
     * 所属公司ID
     */
    @TableField(value = "company_id")
    @ApiModelProperty(value="所属公司ID")
    private Long companyId;

    public static final String COL_REPAYMENT_DATE = "repayment_date";

    public static final String COL_REPAYMENT_INDEX = "repayment_index";

    public static final String COL_PRINCIPAL = "principal";

    public static final String COL_INTEREST = "interest";

    public static final String COL_TOTAL = "total";

    public static final String COL_CONTRACT_DETAIL_ID = "contract_detail_id";

    public static final String COL_COMPANY_ID = "company_id";
}